<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ page contentType="text/html;charset=windows-1252"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://xmlns.oracle.com/adf/faces" prefix="af"%>
<%@ taglib uri="http://xmlns.oracle.com/adf/faces/html" prefix="afh"%>
<f:view>
  <afh:html>
    <afh:head title="Twist Menu">
      <meta http-equiv="Content-Type"
            content="text/html; charset=windows-1252"/>
      <link type="text/css" rel="stylesheet" href="css/jdeveloper.css"/>
    </afh:head>
    <afh:body>
      <af:panelHeader text="Uitzendkrachtbeheer"/>
      <af:messages/>
      <h:form>
        <af:panelGroup>
          <af:panelHeader text="Uitzendkrachten" inlineStyle="font-size:large;">
            <af:panelButtonBar>
              <af:inputText value="#{bindings.uitzendkrachtSearch.inputValue}"
                            label="#{bindings.uitzendkrachtSearch.label}"
                            required="#{bindings.uitzendkrachtSearch.mandatory}"
                            columns="#{bindings.uitzendkrachtSearch.displayWidth}">
                <af:validator binding="#{bindings.uitzendkrachtSearch.validator}"/>
              </af:inputText>
              <af:commandButton actionListener="#{bindings.ExecuteWithParams.execute}"
                                text="Search"
                                disabled="#{!bindings.ExecuteWithParams.enabled}"/>
            </af:panelButtonBar>
            <af:table id="masterDetail1"
                      rows="#{bindings.UitzendkrachtBeheer2.rangeSize}"
                      first="#{bindings.UitzendkrachtBeheer2.rangeStart}"
                      emptyText="#{bindings.UitzendkrachtBeheer2.viewable ? \'No rows yet.\' : \'Access Denied.\'}"
                      var="row"
                      value="#{bindings.UitzendkrachtBeheer2.collectionModel}"
                      selectionState="#{bindings.UitzendkrachtBeheer2.collectionModel.selectedRow}"
                      selectionListener="#{bindings.UitzendkrachtBeheer2.collectionModel.makeCurrent}">
              <f:facet name="selection">
                <af:tableSelectOne autoSubmit="true" text="Select and ">
                  <af:commandButton text="Edit" action="edit"/>
                  <af:commandButton text="Match uitzendkracht"
                                    action="MatchUitzendkracht"/>
                </af:tableSelectOne>
              </f:facet>
              <af:column headerText="#{bindings.UitzendkrachtBeheer2.labels.Naam}"
                         sortable="false" sortProperty="Naam">
                <af:outputText value="#{row.Naam}"/>
              </af:column>
              <af:column headerText="#{bindings.UitzendkrachtBeheer2.labels.Adres}"
                         sortable="false" sortProperty="Adres">
                <af:outputText value="#{row.Adres}"/>
              </af:column>
              <af:column headerText="#{bindings.UitzendkrachtBeheer2.labels.Woonplaats}"
                         sortable="false" sortProperty="Woonplaats">
                <af:outputText value="#{row.Woonplaats}"/>
              </af:column>
              <af:column headerText="#{bindings.UitzendkrachtBeheer2.labels.Telefoon}"
                         sortable="false" sortProperty="Telefoon">
                <af:outputText value="#{row.Telefoon}"/>
              </af:column>
              <f:facet name="actions">
                <af:commandButton text="New" action="new"/>
              </f:facet>
            </af:table>
          </af:panelHeader>
          <af:panelHeader text="Voorkeuren">
            <af:table partialTriggers="masterDetail1"
                      rows="#{bindings.UitzendkrachtBeheer2VoorkeurenBeheer1.rangeSize}"
                      first="#{bindings.UitzendkrachtBeheer2VoorkeurenBeheer1.rangeStart}"
                      emptyText="#{bindings.UitzendkrachtBeheer2VoorkeurenBeheer1.viewable ? \'No rows yet.\' : \'Access Denied.\'}"
                      var="row"
                      value="#{bindings.UitzendkrachtBeheer2VoorkeurenBeheer1.collectionModel}"
                      selectionState="#{bindings.UitzendkrachtBeheer2VoorkeurenBeheer1.collectionModel.selectedRow}"
                      selectionListener="#{bindings.UitzendkrachtBeheer2VoorkeurenBeheer1.collectionModel.makeCurrent}">
              <f:facet name="selection">
                <af:tableSelectOne text="Select and ">
                  <af:commandButton text="Edit" action="editVoorkeur"/>
                </af:tableSelectOne>
              </f:facet>
              <af:column headerText="#{bindings.UitzendkrachtBeheer2VoorkeurenBeheer1.labels.Naam}"
                         sortable="false" sortProperty="Naam">
                <af:outputText value="#{row.Naam}"/>
              </af:column>
              <af:column headerText="#{bindings.UitzendkrachtBeheer2VoorkeurenBeheer1.labels.Uren}"
                         sortable="false" sortProperty="Uren">
                <af:outputText value="#{row.Uren}">
                  <f:convertNumber groupingUsed="false"
                                   pattern="#{bindings.UitzendkrachtBeheer2VoorkeurenBeheer1.formats.Uren}"/>
                </af:outputText>
              </af:column>
              <af:column headerText="#{bindings.UitzendkrachtBeheer2VoorkeurenBeheer1.labels.Interesse}"
                         sortable="false" sortProperty="Interesse">
                <af:outputText value="#{row.Interesse}"/>
              </af:column>
              <f:facet name="actions">
                <af:commandButton text="New" action="newVoorkeur"/>
              </f:facet>
            </af:table>
          </af:panelHeader>
        </af:panelGroup>
        <af:commandButton actionListener="#{bindings.Commit.execute}"
                          text="Commit" disabled="#{!bindings.Commit.enabled}"/>
        <af:commandButton actionListener="#{bindings.Rollback.execute}"
                          text="Rollback"
                          disabled="#{!bindings.Rollback.enabled}"
                          immediate="true">
          <af:resetActionListener/>
        </af:commandButton>
        <af:commandLink text="Back" action="back" immediate="true"/>
      </h:form>
    </afh:body>
  </afh:html>
</f:view>